<p class="dim"><%= @created_invitation_requests.length %> invitation requests are unanswered</p>

<% count = 0 %>
<% @created_invitation_requests.each do |invitation_request| -%>
	<div style="margin-top: 25px;">
		<% person = invitation_request.person %>
			<span id="person_name_<%= person.id %>" class="model_name"><%= h person.name %></span>
			<span id="person_location_<%= person.id %>" class="model_data">(<%= h person.location %>)</span> <br />

			<% if !person.url.blank? %>
				<span id="person_url_<%= person.id %>" class="model_data">
					<a href="<%= person.url %>" target="_blank"><%= person.url %></a>
				</span>
				<br />
			<% end %>

			<span id="person_email_address_<%= person.id %>" class="model_data">
				<%= mail_to person.email_address, person.email_address, :encode => 'javascript' %>
			</span>
			<br />

			<%= label_tag "invitation_request_open_space_participation_#{person.id}", 'Open Space Participation', :class => 'model_label' %>
			<span id="invitation_request_open_space_participation_<%= person.id %>" class="model_data">
			<%= h invitation_request.open_space_participation %>
			</span>
			<br />

			<%= label_tag "invitation_request_workshops_attendance_#{person.id}", 'Workshops Attendance', :class => 'model_label' %>
			<span id="invitation_request_workshops_attendance_<%= person.id %>" class="model_data">
			<%= h invitation_request.workshops_attendance %>
			</span>
			<br />

			<% if !invitation_request.comment.blank? %>
				<span id="invitation_request_comment" class="model_data">
					<%= h invitation_request.comment %>
				</span>
				<br />
			<% end %>
			<span style="margin-left: 250px;">
			<%= link_to "decline", decline_invitation_request_path(invitation_request) %>
			<span class="light">|</span> 
			<%= link_to "accept", accept_invitation_request_path(invitation_request) %>
			</span>
		<div class="line" />
	</div>
	<% count = count + 1 %>
<% end -%>
